/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
    StyleSheet,
    View,
} from 'react-native';
import { Button, } from '@ant-design/react-native';
import ClientUtil from '../utils/ClientUtil'

export default class extends Component {
    constructor(props) {
        super(props);
        this.state = {
            
        }
    }
    
    componentDidMount() {

    }

    render() {

        return (
            <View style={{ backgroundColor: 'white', height: 76, width: ClientUtil.SCREEN_WIDTH }}>
                <Button
                    style={{ marginLeft: 16, marginRight: 16, marginVertical: 8 }}
                    type="primary"
                    disabled={this.props.disabled}
                    onPress={this.props.submitHandle}>
                    {this.props.text?this.props.text:'提交'}
                </Button>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    
});
